package com.dingreading.cloud.common.util;


/**
 * 字符处理工具
 */
public class TextUtils {

    public static void main(String[] args) {
        int mun=4;
        Integer i = dealLastFour(mun);
        System.out.println("i = " + i);
    }

    /**
     * 数字最后一位是4则跳过
     */
    public static Integer dealLastFour(Integer number){
        String text = String.valueOf(number);
        String lastNum = text.charAt(text.length() - 1) + "";
        if (lastNum.equals("4")) {
            number += 1;
        }
        return number;
    }
}
